package cn.janescott.file.server.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 结果对象
 *
 * @author scott
 * @date 2019/4/15
 */
public class ResultDTO implements Serializable {

    /**
     * 消息
     */
    private String msg;

    /**
     * 代码
     */
    private String code;

    /**
     * 数据
     */
    private Data data;

    /**
     * 文件数据
     */
    public static class Data {
        /**
         * 异常文件
         */
        private List<String> errFiles = new ArrayList<>();
        /**
         * 成功文件
         */
        private Map<String, String> succMap = new HashMap<>();

        public List<String> getErrFiles() {
            return errFiles;
        }

        public void setErrFiles(List<String> errFiles) {
            this.errFiles = errFiles;
        }

        public Map<String, String> getSuccMap() {
            return succMap;
        }

        public void setSuccMap(Map<String, String> succMap) {
            this.succMap = succMap;
        }
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }
}
